package com.loyal.camerax.analyzer

import android.graphics.ImageFormat
import android.media.FaceDetector
import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy

/**
 * #https://juejin.cn/post/7360903734853025844
 */
class FaceDetectorAnalyzer : ImageAnalysis.Analyzer {
    override fun analyze(image: ImageProxy) {
        //FaceDetector

        if (ImageFormat.YUV_420_888 == image.format) {

        }
        image.close()
    }

}